<template>
	<view>
		<uni-easyinput  v-model="item.name" placeholder="name" />
		<uni-easyinput  v-model="item.tel" placeholder="tel" />
		<button type="default" click="submit">提交</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item:{
					"name":"",
					"tel":""
				}
				
			}
		},
		methods: {
			submit(){
				const db = uniCloud.database();
				db.collection('resume').add(this.item).then(e=>{
					console.log(e);
				})
			}
		}
	}
</script>

<style>

</style>
